#region File Header
//----------------------------------------------------------------
// Copyright (C) 2002 Stefan Kyntchev
// All rights reserved.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY 
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT 
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR 
// FITNESS FOR A PARTICULAR PURPOSE.
//----------------------------------------------------------------
#endregion File Header

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;
using AirWeb.ApplicationTools.Common;
using AirWeb.DirectoryMgr;

namespace FlashBack.Web
{
	/// <summary>
	/// Summary description for FilmStrip.
	/// </summary>
	public partial class FilmStrip : ThumbNails
	{		

		#region Web Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{    
		}
		#endregion

		override protected void SetTitle(string i_newTitle)
		{
		}

		override protected void SetNavigation(string i_newTitle, string i_newURL)
		{
		}

		override protected void DisplayErrorMsg(string i_msg)
		{
			MsgLabel.Visible = true;
			PictureGrid.Visible = false;
			MsgLabel.Text = i_msg;
		}

		override protected string GetSlideName(string i_path)
		{
			string r = m_dirHelper.TN2SL(i_path);
			return m_dirHelper.UrlEncodeFilePath(r);
		}
		
		override protected void BindToControl(DataTable i_dt)
		{
			DataView v = new DataView(i_dt);
			PictureGrid.DataSource = v;
			PictureGrid.DataBind();
		}

		protected new void ChangePageIndex(object Sender, DataGridPageChangedEventArgs e)
		{
			PictureGrid.CurrentPageIndex = e.NewPageIndex;
			BuildAndBind();
		}
	}
}
